<!DOCTYPE html>
<html>
<head>
<include file="Include:meta" />
<title>项目-目的地运营集团数据管理平台</title>
<include file="Include:style" />
<include file="Include:javascript" />
<style>
    .hidden{ display: none; }
</style>
</head>
<body style="background: #f3f3f3;">
<div class="header">
	<a class="back_btn" href="javascript:history.back(-1);"></a>
    会议纪要详情
</div>
<div class="content">
    <div class="meeting_cont">
        <div class="det_box">
            <h3>{$result['meeting_num']}</h3>
            <div class="clearboth">
                <dl>
                    <dd>模板：{$result['module_name']}</dd>
                    <dd>地点：{$result['meeting_address']}</dd>
                </dl>
                <dl>
                    <dd>日期：{$result['date']}</dd>
                    <dd>所属：{$result['center_name']}</dd>
                </dl>
            </div>
            <if condition="$result['hy_id'] neq NULL"><p>关联：[{$result['hy_num']}]{$result['mb_name']}</p></if>
        </div>
        <div class="scroll_menu">
            <div id="wrapper">
	            <div id="scroller">
                    <div class="alis">
						<foreach name="detail" item="vo">
                        <a  href="javascript:;" uid="{$vo['uid']}" mid="{$result['id']}" <if condition="$key eq 0">class="active"</if>>{$vo['username']}<img src="__PUBLIC__/mobile/images/index/arrow_bottom.png" alt=""></a>
						</foreach>
                    </div>
                </div>
            </div>
        </div>
        <div class="html_cont">
            <div class="html_box mb10">
                <if condition="$detail[0]['matter'] neq NULL">
                <div class="list ajax1">
                <else/>
                <div class="list ajax1 hidden">
                </if>
                    <h3>事项<span></span></h3>
                    <div class="text">
                        {$detail[0]['matter']}
                    </div>
                </div>
                </if>
                <if condition="$detail[0]['reply'] neq NULL">
                <div class="list ajax2">
                <else/>
                <div class="list ajax2 hidden">
                </if>
                    <h3>批复意见<span></span></h3>
                    <div class="text">
                        {$detail[0]['reply']}
                    </div>
                </div>
                </if>
                <if condition="$detail[0]['ready_things'] neq NULL">
                <div class="list ajax3">
                <else/>
                <div class="list ajax3 hidden">
                </if>
                    <h3>待办<span></span></h3>
                    <div class="text">
                    {$detail[0]['ready_things']}
                    </div>
                </div>
                </if>
            </div>
            <if condition="($detail[0]['matter_gl'] neq NULL) or ($detail[0]['reply_gl'] neq NULL) or ($detail[0]['ready_things_gl'] neq NULL)">
                <div class="html_box html_box2">
            <else/>
                <div class="html_box html_box2 hidden">
            </if>
                <if condition="$detail[0]['matter_gl'] neq NULL">
                <div class="list ajax4">
                <else/>
                <div class="list ajax4 hidden">
                </if>
                    <h3>关联事项<span></span></h3>
                    <div class="text">
                        {$detail[0]['matter_gl']}
                    </div>
                </div>
                </if>
                <if condition="$detail[0]['reply_gl'] neq NULL">
                <div class="list ajax5">
                <else/>
                <div class="list ajax5 hidden">
                </if>
                    <h3>关联批复意见<span></span></h3>
                    <div class="text">
                        {$detail[0]['reply_gl']}
                    </div>
                </div>
                </if>
                <if condition="$detail[0]['ready_things_gl'] neq NULL">
                <div class="list ajax6">
                <else/>
                <div class="list ajax6 hidden">
                </if>
                    <h3>关联待办<span></span></h3>
                    <div class="text">
                        {$detail[0]['ready_things_gl']}
                    </div>
                </div>
                </if>
            </div>
        </div>
    </div>
</div>
<script>
    $(function(){
        var p = $('.scroll_menu a').length*70;
        $('.alis').width(p);
        //var myScroll = new iScroll('wrapper');
        var myScroll;
        myScroll = new IScroll('#wrapper', { scrollX: true , scrollY:false , preventDefault:false, });
        $(window).scroll(function(){
            if($(window).scrollTop()>=134){
                $('.scroll_menu').addClass('active');
            }else{
                $('.scroll_menu').removeClass('active');
            }
        })
        var sch = $(window).height()-80;
        $('.html_cont').css('min-height',sch)
        $('.scroll_menu a').click(function(){
            $(window).scrollTop(134);
            var uid = $(this).attr('uid'),
                mid = $(this).attr('mid');
            $(this).addClass('active').siblings().removeClass('active');
            $.ajax({
                type:"POST",
                async:false,
                dataType:"json",
                data:{"uid":uid,"mid":mid},
                url:"__APP__/Mobile/Index/meeting_minutes_detail_ajax",
                success:function(data){
                    if(data.matter){
                        $('.ajax1 .text').html(""+data.matter+"");
                        $('.ajax1').show();
                    }else{
                        $('.ajax1').hide();
                    }
                    if(data.reply){
                        $('.ajax2 .text').html(""+data.reply+"");
                        $('.ajax2').show();
                    }else{
                        $('.ajax2').hide();
                    }
                    if(data.ready_things){
                        $('.ajax3 .text').html(""+data.ready_things+"");
                        $('.ajax3').show();
                    }else{
                        $('.ajax3').hide();
                    }
                    if(data.matter_gl){
                        $('.ajax4 .text').html(""+data.matter_gl+"");
                        $('.ajax4').show();
                    }else{
                        $('.ajax4').hide();
                    }
                    if(data.reply_gl){
                        $('.ajax5 .text').html(""+data.reply_gl+"");
                        $('.ajax5').show();
                    }else{
                        $('.ajax5').hide();
                    }
                    if(data.ready_things_gl){
                        $('.ajax6 .text').html(""+data.ready_things_gl+"");
                        $('.ajax6').show();
                    }else{
                        $('.ajax6').hide();
                    }
                    if($('.html_box2 .list:hidden').length==3){
                        $('.html_box2').hide();
                    }
                }
            })
        })
    })
</script>
</body>
</html>